# -*- conding:UTF-8 -*-

'''
@ Project: p7_flask
@ File: main.py
@ Author: 师路遥
@ Date：2022/6/6 15:03

'''

from celery import Celery

# include =[] 元素是任务
app = Celery('MyCelery')

# 加载配置文件
app.config_from_object('celery_tasks.celeryconfig')
# 自动发现任务
app.autodiscover_tasks(['celery_tasks.tasks.task.sms_code'])
